/*
 * Copyright (c) chb my copyright message. 2022-2023. All rights reserved.
 *
 */

import request from "../utils/request";

// 歌手分类列表
export function getArtistList(type, area, limit) {
  return request({
    url: 'artist/list?type=' + type + '&area=' + area + '&limit=' + limit,
    method: 'get'
  })
}

//热门歌手
export function getTopArtists(limit) {
  return request({
    url: 'top/artists?limit=' + limit,
    method: 'get'
  })
}

// 收藏/取消收藏歌手
export function updateArtistesSub(id, t) {
  return request({
    url: '/artist/sub?id=' + id + '&t=' + t,
    method: 'get'
  })
}

//获取歌手详情
export function getArtistDetail(id) {
  return request({
    url: 'artist/detail?id=' + id,
    method: 'get'
  })
}

//获取歌手描述
export function getArtistDesc(id) {
  return request({
    url: 'artist/desc?id=' + id,
    method: 'get'
  })
}

//获取相识歌手
export function getSimiArtist(id) {
  return request({
    url: 'simi/artist?id=' + id,
    method: 'get'
  })
}


//歌手粉丝量
export function getArtistFollowCount(id) {
  return request({
    url: 'artist/follow/count?id=' + id,
    method: 'get'
  })
}

//歌手热门50首歌曲
export function getArtistTopSong(id) {
  return request({
    url: 'artist/top/song?id=' + id,
    method: 'get'
  })
}
